package com.eduhzy.ttw.teacher.di.component;

import com.eduhzy.ttw.teacher.di.module.DiscoverModule;
import com.eduhzy.ttw.teacher.mvp.contract.DiscoverContract;
import com.eduhzy.ttw.teacher.mvp.ui.fragment.DiscoverFragment;
import com.jess.arms.di.component.AppComponent;
import com.jess.arms.di.scope.FragmentScope;

import dagger.BindsInstance;
import dagger.Component;

/**
 * @author xubo
 * @date 2018-7-20 15:33:28
 */
@FragmentScope
@Component(modules = DiscoverModule.class, dependencies = AppComponent.class)
public interface DiscoverComponent {
    void inject(DiscoverFragment fragment);

    @Component.Builder
    interface Builder {
        @BindsInstance
        DiscoverComponent.Builder view(DiscoverContract.View view);

        DiscoverComponent.Builder appComponent(AppComponent appComponent);

        DiscoverComponent build();
    }


}